﻿@model Gfw.Web.Models.User.UserBindingInfoModel
@{
    if (Model.IsLock)
    {
        ViewBag.Title = "解锁";
    }
    else
    {
        ViewBag.Title = "封号";
    }

    Layout = "~/Views/Shared/_LayoutContent.cshtml";
}

<h2 style="color:#f00">请注意当前状态为：
    @{
        if (Model.IsLock)
        {
        @:解锁
            }
        else
        {
        @:封号
            }
    }
</h2>

@using (Html.BeginForm(new { isLock = !Model.IsLock }))
{
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>
            @{
    if (Model.IsLock)
    {
                @:解锁
            }
    else
    {
                @:封号
            }
            }
        </legend>

        @Html.HiddenFor(model => model.LoginName)
        @Html.HiddenFor(model => model.IDCard)

        <div class="editor-label">
            @Html.LabelFor(model => model.LockReason)
        </div>
        <div class="editor-field">
            @Html.TextAreaFor(model => model.LockReason)
            @Html.ValidationMessageFor(model => model.LockReason)
        </div>


        <p>
            @{
    if (Model.IsLock)
    {
                <input type="submit" value="解锁" />
    }
    else
    {
                <input type="submit" value="封号" />
    }
            }
            
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("返回", "Index", new { loginName = Model.LoginName })
</div>

@section Scripts {
    @System.Web.Optimization.Scripts.Render("~/bundles/jqueryval")
}
